<style type="text/css">
.wd-table table th, .wd-table table td{padding:10px 15px;text-align:center;}
.wd-table table th{background-color:#900;border:#000 solid 1px;color:#fff;height:15px;line-height:15px;white-space:nowrap;}
.wd-table table td{border:gray solid 1px;}
.wd-table table .wd-left{text-align:left !important;}
</style>
<h1>Căng tin</h1>
<div class="wd-table">
<table cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>Nội dung</td>
        <td>Số lượng</td>
        <td>Thành tiền</td>
    </tr>
    <?php if(count($data['tables'])): ?>
    <?php foreach($data['tables'] as $table): ?>
    <?php foreach($table['drinks'] as $item): ?>
    <tr>
        <td><?php if($item->drink_id) echo $item->drink->type ; else echo $item->clothing->type;  ?></td>
        <td><?php echo $item->number ?></td>
        <td><?php if($item->drink_id) echo ($item->drink->price * $item->number) ; else echo ($item->clothing->price * $item->number);  ?></td>
    </tr>
    <?php endforeach; ?>
    <?php endforeach; ?>
    <?php endif; ?>
</table>
</div>
<h1>Sân</h1>
<div class="wd-table">
<table cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>Tên</td>        
        <td>Thành tiền</td>
    </tr>
    <?php if(count($data['stadiums'])): //CVarDumper::dump($data['stadiums']); ?>
    <?php foreach($data['stadiums'] as $item): ?>
    <tr>
        <td><?php echo $item['stadium'] ?></td>
        <td><?php echo $item['money'] ?></a></td>
    </tr>
    <?php endforeach; ?>
    <?php endif; ?>
</table>
</div>